package com.aopeng.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @Description: 管理员用户表实体类
* @Author: 谢辉
* @CreateDate: 2020/7/10 20:49
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "client_info")
public class ClientInfo {

    @TableId(value = "id",type = IdType.AUTO)   //指定id并设置为自增
    private Long id;
    private String clientIp;
    private String remoteHost;
    private Integer remotePort;
    private String localAddr;
    private String localName;
    private String requestUrl;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;                    //创建时间

    @Override
    public String toString() {
        return "ClientInfo{" +
            "id=" + id +
            ", clientIp='" + clientIp + '\'' +
            ", remoteHost='" + remoteHost + '\'' +
            ", remotePort=" + remotePort +
            ", localAddr='" + localAddr + '\'' +
            ", localName='" + localName + '\'' +
            ", requestUrl='" + requestUrl + '\'' +
            ", createTime=" + createTime +
            '}';
    }
}
